﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentListToFileAndFromFile
{
    class Student
    {
        public string id;
        public string firstName;
        public string lastName;
        //private static int studentNumber = 0;

        public void AddStudentsInfo()
        {
            Console.WriteLine("Please add the students info.");
            Console.WriteLine("Please add the students id:");
            id = Console.ReadLine().Replace(" ", "");
            Console.WriteLine("Please add the students first name:");
            firstName = Console.ReadLine().Replace(" ", "");
            Console.WriteLine("Please add the students last name:");
            lastName = Console.ReadLine().Replace(" ", "");

            //id = "id-" + studentNumber;
            //firstName = "Alex";
            //lastName = "Petrenko" + studentNumber;
            //Student.studentNumber++;

            Console.WriteLine();
        }

        public void PrintStudentInfo()
        {
            Console.WriteLine("Students id - {0}, First name - {1}, Last name - {2}. ", id, firstName, lastName);
        }

    }
}
